/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fix.it.source.fixit;

import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

/**
 *
 * @author Biserka
 */
@Stateless
public class UserBean {
    @PersistenceContext(unitName = "fix.it.source_FixIt_war_1.0-SNAPSHOTPU")
    private EntityManager entityManager;
    
    public List<Localuser> getLocalUsers(){
        Query q = entityManager.createNamedQuery("Localuser.findAll");
        return q.getResultList();
    }
}
